<script>
	export default {
		onLoad: function() { 
			var str = uni.getStorageSync("huancun")
			if(typeof str == 'string' && str.length == 0){
				console.log("aaa") 
				//用户消息数组
				var message = []
				uni.setStorageSync("message",JSON.stringify(message))
				//系统消息数组
				var system = [] 
				uni.setStorageSync("system",JSON.stringify(system))
				//添加好友消息数组
				var addUser = []
				uni.setStorageSync("addUser",JSON.stringify(addUser))
				//添加tabbar消息缓存
				uni.setStorageSync("tabbar","0")
				//添加标记
				uni.setStorageSync("huancun","ok")
			}
		},
		onShow: function() { 
		},
		onHide: function() { 
			console.log('App Hide')
		},	
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-plus/index.scss";
	@import "@/static/font/iconfont-weapp-icon.css"//引入阿里巴巴彩色矢量图标
</style> 
